<nav class="navbar navbar-default">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="<?=url("admin/order/index")?>">微信分销</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <?php if (in_array('pcate', config("adminuser.permission.".session('admin.name')))):?>
                <li><a href="<?=url("admin/pcate/index")?>"> 分类 </a></li>
                <?php endif; ?> 
                <?php if (in_array('area', config("adminuser.permission.".session('admin.name')))):?>
                <li><a href="<?=url("admin/area/index")?>"> 地区 </a></li>
                <?php endif; ?>
                <?php if (in_array('plotfav', config("adminuser.permission.".session('admin.name')))):?>
                <li><a href="<?=url("admin/plotfav/index")?>"> 优惠 </a></li>
                <?php endif; ?> 
                <?php if (in_array('product', config("adminuser.permission.".session('admin.name')))):?>
                <li><a href="<?=url("admin/product/index")?>"> 产品 <span class="sr-only">(current)</span></a></li>
                <?php endif; ?>
                <?php if (in_array('plot', config("adminuser.permission.".session('admin.name')))):?>
                <li><a href="<?=url("admin/plot/index")?>"> 小区 </a></li>
                <?php endif; ?>
                <?php if (in_array('bank', config("adminuser.permission.".session('admin.name')))):?>
                <!--<li><a href="<?=url("admin/bank/index")?>"><i class="glyphicon glyphicon-th-list"></i>　银行 </a></li>-->
                <?php endif; ?>
                <?php if (in_array('order', config("adminuser.permission.".session('admin.name')))):?>
                <li><a href="<?=url("admin/order/index")?>"> 订单 </a></li>
                <?php endif; ?>
                <?php if (in_array('account', config("adminuser.permission.".session('admin.name')))):?>
                <!--<li><a href="<?=url("admin/account/index")?>"><i class="glyphicon glyphicon-duplicate"></i> 提现　</a></li>-->
                <?php endif; ?>
                <?php if (in_array('user', config("adminuser.permission.".session('admin.name')))):?>
                <li><a href="<?=url("admin/user/index")?>"> 用户　</a></li>
                <?php endif; ?>
                <?php if (in_array('pushmoney', config("adminuser.permission.".session('admin.name')))):?>
                <!--<li><a href="<?=url("admin/pushmoney/index")?>"><i class="glyphicon glyphicon-duplicate"></i> 提成比例　</a></li>-->
                <?php endif; ?>
                <?php if (in_array('jobs', config("adminuser.permission.".session('admin.name')))): ?>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">派单管理 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?=url("admin/jobs/index")?>">任务管理</a></li>
                        <li><a href="<?=url("admin/notice/index")?>">公告管理</a></li>
                        <li><a href="<?=url("admin/instper/index")?>">装维人员管理</a></li>
                        <li><a href="<?=url("admin/cause/index")?>">反馈原因管理</a></li>
                    </ul>
                </li>
                <?php endif; ?>
                <?php if (in_array('find', config("adminuser.permission.".session('admin.name')))):?>
                <form id="eveSearch" action="<?= url("admin/order/find") ?>" class="navbar-form navbar-left" role="search">
                    <div class="form-group">
                        <input type="text" name="reciver" class="form-control" placeholder="订单手机号" value="">
                    </div>
                    <button type="submit" class="btn btn-default">查找订单</button>
                </form>
                <?php endif; ?>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="<?=url("admin/login/logout")?>"><i class="glyphicon glyphicon-user"></i>　退出</a></li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>